Skip to content

Add OpenCode 2 compatibility support - #5

Merged
moritzfl merged 4 commits into
moritzfl:mainfrom
prestonlogan:opencode2-support
Sep 16, 2026
Merged

moritzfl merged 4 commits into
moritzfl:mainfrom
prestonlogan:opencode2-support

Conversation

@prestonlogan

Copy link
Copy Markdown

Summary

  • Add a lazy V1/V2 package boundary with OpenCode 2 setup support.
  • Adapt public service discovery, session/message/config APIs, cancellation, cleanup, and scoped agents.
  • Add durable citation accounting, reset-safe ledgers, status RPC/TUI controls, and V1/V2 contract checks.
  • Address all 18 actionable review findings, including pagination, shutdown safety, runtime agent provisioning, package declarations, and TUI recovery.

Validation

  • 415 tests passing
  • Build passing
  • V1 and V2 contract checks passing on OpenCode 2.0.3
  • Packed V1 declarations typecheck without V2 peers

Single package entry dual-exports V1 server() and V2 setup(); the V1
pipeline runs unchanged via a V1-client shim (src/v2/). V2 adaptations:
registry-based discovery, sessionless extraction via generate.text,
helper sessions released (not deleted), explicit extract/consolidation
models, both agents ship (extract hidden).

Adds a Memory sidebar section and /memory-status via the ./tui entry
and a read-only status RPC. 37 v2 tests, contract:v2 check,
docs/opencode2.md.
@moritzfl
moritzfl merged commit 2d1bbd4 into moritzfl:main Sep 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants